Code That Didn't Work (But Taught Me A Lot!)
Infinite Loop Nightmare
for i in range(10): while True: print("I can't stop!")
Lesson learned: Always have an exit condition!
The Misplaced Semi-Colon
if (a == b); print("Oops!")
Lesson learned: Be cautious with semicolons in Python!